<!DOCTYPE html>
<html lang="zh-cn" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-bind="http://www.w3.org/1999/xhtml">
  <head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta name="referrer" content="origin-when-crossorigin"/>
    <meta name="description" content="学习无涯"/>
    <meta property="og:description" content="学习无涯"/>
    <meta http-equiv="Cache-Control" content="no-transform"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title>AlwaysLearning - Sudoku</title>
    <link rel="shortcut icon" href="./img/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="./css/pintuer-2.0.custom.min.css"/>
    <link rel="stylesheet" href="./css/sudoku.css"/>
    <script src="./js/jquery-3.4.1.min.js"></script>
    <script src="./js/pintuer-2.0.min.js"></script>
    <script src="./js/vue.js"></script>
  </head>
  <body>
    <main class="layout container">
      <h1>数独解题器</h1>
      <div class="operations">
        <button v-on:click="clear">清除</button>
        <button v-on:click="sample">示例</button>
        <button v-on:click="solve">解题</button>
      </div>
      <p>{{ errMsg }}</p>
      <div style="width: fit-content">
        <div class="board">
          <div class="row" v-for="(row, i) in board" v-bind:style="i === 2 || i === 5 ? {borderBottom: 'solid 2px #555555'} : {}">
            <div class="column" v-for="(col, j) in row" v-bind:style="j === 2 || j === 5 ? {borderRight: 'solid 2px #555555'} : {}">
              <input class="grid" v-model="board[i][j].val" />
            </div>
          </div>
        </div>
      </div>
    </main>
  </body>
  <script src="./js/sudoku.js"></script>
</html>
